package com.foreknow.practice.OOp;

public class Test4 {

    //请出拳
    public int  punch (int choice1){
        //是否开启下一轮
        Test3 test3 = new Test3();
        //从控制台输入
//        Scanner input = new Scanner(System.in);
//        choice = input.nextInt();
        switch (choice1){
            case 1:
                System.out.println("你出拳:剪刀");
                System.out.println("刘备出拳:剪刀");
                System.out.println("结果:☺ 你输了,真笨!");
                test3.decides();
                break;
            case 2:
                System.out.println("你出拳:石头");
                System.out.println("刘备出拳:剪刀");
                System.out.println("结果:恭喜,你赢了");
                test3.decides();
                break;
            case 3:
                System.out.println("你出拳:布");
                break;
        }
        return choice1;
    }

}
